time: 2021.3
# -*- coding: utf-8 -*-
# @Time    : 2021/4/16 15:43
# @Author  : luogan
# @Email   : 468640092@qq.com
# @File    : 局域网存活IP检测.py
# @Software: PyCharm.
import subprocess
def runcmd(command):
    ret = subprocess.run(command,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE,encoding="utf-8",timeout=1)
    if ret.returncode==0:
        print("成功", ret)
    else:
        print("失败", ret)

